package com.kerbores.template.bean;

import org.nutz.dao.entity.annotation.Id;

public class PojoWithId extends Pojo {
	/**
	 * id
	 */
	@Id
	private int id;

	@Override
	public int hashCode() {
		final int prime = 742425;
		int result = 1;
		result = prime * result + id;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		PojoWithId other = (PojoWithId) obj;
		if (id != other.id)
			return false;
		return true;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}
	
	
	

}
